.org-tree-container {
    display: inline-block;
    padding: 15px;
    //   background-color: #fff;
}
data
.org-tree {
    // display: inline-block;
    display: table;
    text-align: center;
    &:before, &:after {
        content: '';
        display: table;
    }
    &:after {
        clear: both;
    }
}
.org-tree-node,
.org-tree-node-children {
    position: relative;
    margin: 0;
    padding: 0;
    list-style-type: none;
    &:before, &:after {
        transition: all .35s;
    }
}
.org-tree-node-label {
    position: relative;
    display: inline-block;
    .community-color{
        padding: 22px;
        background: rgba(253,246,230,1);
        border: 1px solid rgba(255,192,105,1);
        font-size: 20px;
    }
    .building-color{
        font-size: 14px;
        padding: 16px 42px;
        background: rgba(228,245,252,1);
        border: 1px solid rgba(104,192,255,1);
    }
    .unit-color{
        padding: 5px 30px;
        font-size: 14px;
        background: rgba(228,252,248,1);
        border:1px solid rgba(106,223,215,1);
    }
    .code-color{
        padding: 5px 20px;
        font-size: 14px;
        background: rgba(248,240,254,1);
        border: 1px solid rgba(187,140,237,1);
    }
    .org-tree-node-label-inner {
        border-radius: 4px;
        margin: 8px 0;
        box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.2);
    }
}
.org-tree-node-btn {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 20px;
    height: 20px;
    z-index: 10;
    margin-left: -11px;
    margin-top: 9px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(0, 0, 0, .15);
    cursor: pointer;
    transition: all .35s ease;
    &:hover {
        background-color: #e7e8e9;
        transform: scale(1.15);
    }
    &:before, &:after {
        content: '';
        position: absolute;
    }
    &:before {
        top: 50%;
        left: 4px;
        right: 4px;
        height: 0;
        border-top: 1px solid #ccc;
    }
    &:after {
        top: 4px;
        left: 50%;
        bottom: 4px;
        width: 0;
        border-left: 1px solid #ccc;
    }

    &.expanded:after {
        border: none;
    }
}
.org-tree-node {
    padding-top: 20px;
    display: table-cell;
    vertical-align: top;
    &.is-leaf, &.collapsed {
        padding-left: 2px;
        padding-right: 2px;
    }
    &:before, &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 50%;
        height: 19px;
    }
    &:after {
        left: 50%;
        border-left: 1px solid #979797;
    }
    &:not(:first-child):before,
    &:not(:last-child):after {
        border-top: 1px solid #979797;
    }
}
.collapsable .org-tree-node.collapsed {
    padding-bottom: 30px;
    .org-tree-node-label:after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        width: 50%;
        height: 20px;
        border-right: 1px solid #979797;
    }
}
.org-tree > .org-tree-node {
    padding-top: 0;
    &:after {
        border-left: 0;
    }
}
.org-tree-node-children {
    padding-top: 20px;
    display: table;
    &:before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        width: 0;
        height: 20px;
        border-left: 1px solid #979797;
    }
    &:after {
        content: '';
        display: table;
        clear: both;
    }
}
.horizontal>.org-tree-node:after{
    border-top: 0 !important
}
.horizontal {
    .org-tree-node {
        // display: flex;
        // flex-direction: row;
        // justify-content: flex-start;
        // align-items: center;
        display: table-cell;
        float: none;
        padding-top: 0;
        padding-left: 20px;
        &.is-leaf, &.collapsed {
            padding-top: 2px;
            padding-bottom: 2px;
        }
        &:before, &:after {
            width: 19px;
            height: 50%;
        }
        &:after {
            top: 50%;
            left: 0;
            border-left: 0;
            border-top: 1px solid #979797;
        }
        // &:only-child:after{
        //     top: 1px;
        //     border-top: 1px solid #979797;
        // }
        &:only-child:before {
            top: 1px;
            // border-bottom: 1px solid #979797;
        }
        &:not(:first-child):before,
        &:not(:last-child):after {
            border-top: 0;
            border-left: 1px solid #979797;
        }
        &:not(:only-child):after {
            border-top: 1px solid #979797;
        }
        .org-tree-node-inner {
            display: table;
        }
    }
    .org-tree-node-label {
        display: table-cell;
        vertical-align: middle;
    }
    &.collapsable .org-tree-node.collapsed {
        padding-right: 30px;
        .org-tree-node-label:after {
            top: 0;
            left: 100%;
            width: 20px;
            height: 50%;
            border-right: 0;
            border-bottom: 1px solid #979797;
        }
    }
    .org-tree-node-btn {
        top: 50%;
        left: 100%;
        margin-top: -11px;
        margin-left: 9px;
    }
    & > .org-tree-node:only-child:before {
        border-bottom: 0;
    }
    .org-tree-node-children {
        // display: flex;
        // flex-direction: column;
        // justify-content: center;
        // align-items: flex-start;
        display: table-cell;
        padding-top: 0;
        padding-left: 20px;
        &:before {
            top: 50%;
            left: 0;
            width: 20px;
            height: 0;
            border-left: 0;
            border-top: 1px solid #979797;
        }
        &:after {
            display: none;
        }
        & > .org-tree-node {
            display: block;
        }
    }
}
.menuRight {
    width: 122px;
    background: rgba(255,255,255,1);
    box-shadow: 0px 2px 12px 0px rgba(0,0,0,0.06);
    border: 1px solid rgba(228,231,237,1);
    border-radius: 4px;
    position: absolute!important; /*自定义菜单相对与body元素进行定位*/
    left: 100px;
    z-index: 20;
    cursor: pointer;
    .item {
        font-size: 12px;
        font-family: PingFangSC;
        font-weight: 400;
        line-height: 30px !important;
        height: 30px !important;
        color: rgba(34,34,34,1);
        padding-left: 20px;
        text-align: left;
        &:hover {
            background: #F4F7FA;
        }
    }
}